public ResourceTO create(final HttpServletResponse response, @RequestBody final ResourceTO resourceTO) {
if (StringUtils.isBlank(resourceTO.getName())) {
SyncopeClientCompositeErrorException sccee =
new SyncopeClientCompositeErrorException(HttpStatus.BAD_REQUEST);
SyncopeClientException sce = new SyncopeClientException(SyncopeClientExceptionType.RequiredValuesMissing);
sce.addElement("Resource name");
sccee.addException(sce);
throw sccee;
}
if (resourceDAO.find(resourceTO.getName()) != null) {