public ManagedType(Class<?> type) {
bundle = ResourceBundleProducer.create("demoiselle-core-bundle");
if (type == null) {
throw new DemoiselleException(bundle.getString("management-null-class-defined"));
}
if (!type.isAnnotationPresent(ManagementController.class)) {
throw new DemoiselleException(bundle.getString("management-no-annotation-found", type.getCanonicalName()));
}
this.type = type;
fields = new TreeMap<String, FieldDetail>();
operationMethods = new TreeMap<String, MethodDetail>();