{
List repositoryLanguages = getRepositoryLanguageVOListWithLanguageId(languageId);
Iterator iterator = repositoryLanguages.iterator();
while(iterator.hasNext())
{
RepositoryLanguageVO repositoryLanguage = (RepositoryLanguageVO)iterator.next();
deleteEntity(RepositoryLanguageImpl.class, repositoryLanguage.getRepositoryLanguageId());
}
}
catch(Exception e)
{
throw new SystemException("An error occurred when we tried to find the matching RepositoryLanguage in the database. Reason: " + e.getMessage(), e);