@Autowired
private SchemaDAO schemaDAO;
private <T extends AbstractDerSchema> void populate(final AbstractSchema schema, final SchemaTO schemaTO) {
if (!JexlUtil.isExpressionValid(schemaTO.getMandatoryCondition())) {
SyncopeClientCompositeErrorException scce =
new SyncopeClientCompositeErrorException(HttpStatus.BAD_REQUEST);
SyncopeClientException invalidMandatoryCondition = new SyncopeClientException(
SyncopeClientExceptionType.InvalidValues);
invalidMandatoryCondition.addElement(schemaTO.getMandatoryCondition());
scce.addException(invalidMandatoryCondition);
throw scce;
}
BeanUtils.copyProperties(schemaTO, schema);
}