if (type == null) return null;
type = type.toLowerCase();
TypeReader typeReader = typeReaders.get(type);
if (typeReader == null) {
throw new NoServiceException("No instance of " + TypeReader.class.getName()
+ " available for type named '" + type + "'. Available types: " + typeReaders.keySet());
}
return typeReader;
}