@Override
	public void addResourceLoader(Class<? extends ResourceLoader<?>> clazz)
			throws ResourceException {
		ChronosLogger.info("Register loader: " + clazz.getSimpleName());

		// Check if the class is registered
		ResourceType annotation = clazz.getAnnotation(ResourceType.class);
		if (annotation != null) {

			if (annotation.value().isEmpty()) {
				throw new ResourceException("The annotation in loader class '"
						+ clazz.getSimpleName() + "' needs a value");
			}

			ResourceLoader<?> loader = ClassUtils.createObject(clazz);
			String resourceClass = loader.getResourceClass().getName();
			loaders.put(resourceClass, loader);
			translations.put(annotation.value(), resourceClass);
		} else {
			throw new ResourceException("loader class '"
					+ clazz.getSimpleName()
					+ "' needs a @RegisteredLoader annotation");
		}
	}