newMattrTemplates.add(mAttrTemplate);
}
//Create derived attributes templates
for (AbstractDerAttr mDerAttr : membership.getDerAttrs()) {
final MDerAttrTemplate mDerattrTemplate = new MDerAttrTemplate();
mDerattrTemplate.setOwner(membership.getSyncopeRole());
final String mDerSchemaName = jdbcTemplate.queryForObject(
"SELECT DERIVEDSCHEMA_NAME FROM MDerAttr WHERE id = ?;", String.class, mDerAttr.getId());
mDerattrTemplate.setSchema(derSchemaDAO.find(mDerSchemaName, MDerSchema.class));
newMDerattrTemplates.add(mDerattrTemplate);
}
//Create virtual attributes templates
for (AbstractVirAttr mVirAttr : membership.getVirAttrs()) {