{
List roleContentTypeDefinitionList = this.getRoleContentTypeDefinitionList(roleName, db);
Iterator contentTypeDefinitionsIterator = roleContentTypeDefinitionList.iterator();
while(contentTypeDefinitionsIterator.hasNext())
{
RoleContentTypeDefinition roleContentTypeDefinition = (RoleContentTypeDefinition)contentTypeDefinitionsIterator.next();
db.remove(roleContentTypeDefinition);
}
for(int i=0; i<contentTypeDefinitionIds.length; i++)
{