@SuppressWarnings("unchecked")
public static <T> T getController(final Class<T> type)
{
if (type.equals(ICategoriesController.class))
{
return (T) new CategoriesController(ControllerFactory.domainModel);
}
if (type.equals(ICategoriesParticipantesController.class))
{
return (T) new CategoriesParticipantesController(ControllerFactory.domainModel);
}