public abstract class FacadeLocatorLoader {
@SuppressWarnings("unchecked")
protected <T extends Pojo<? extends Serializable>> Service<T> getService(Class<T> objectClass) {
Service<T> service = null;
ConfigLocators configLocators = SpringContext.getConfigLocators();
if (!configLocators.existeService(objectClass)) {
throw new FacadeException("N�o foi encontrado nenhum servi�o para a classe [" + objectClass.getCanonicalName() + "]");
} else {
String serviceId = configLocators.getServiceId(objectClass);
service = (Service<T>) getApplicationContext().getBean(serviceId);
}
return service;
}