}
public static Resource getPossibleResource(RequestProcessor processor, Object input, Resource type) throws DatabaseException {
- if(input instanceof Collection && !((Collection)input).isEmpty()) {
- Object element = ((Collection)input).iterator().next();
+ if(input instanceof Collection && !((Collection<?>)input).isEmpty()) {
+ Object element = ((Collection<?>)input).iterator().next();
if(element instanceof Resource)
return (Resource)element;
}