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
*/
try {
InputTranslatable translatable = (InputTranslatable) entityProviderManager.getProviderByPrefixAndCapability(prefix, InputTranslatable.class);
if (translatable != null) {
// use provider's translator
entity = translatable.translateFormattedData(ref, format, inputStream, params);
handled = true;
}
} catch (FormatUnsupportedException e) {
// provider decided not to handle this format
handled = false;