if (ref == null || format == null || inputStream == null) {
throw new IllegalArgumentException("ref, format, and inputStream cannot be null");
}
Object entity = null;
String prefix = ref.getPrefix();
Inputable inputable = (Inputable) entityProviderManager.getProviderByPrefixAndCapability(prefix, Inputable.class);
if (inputable != null) {
String[] inputFormats = inputable.getHandledInputFormats();
if (inputFormats == null || ReflectUtils.contains(inputFormats, format) ) {
boolean handled = false;
/* try to use the provider translator if one available,
* if it decided not to handle it or none is available then control passes to internal
*/