}
public RepositoryLanguage create(Integer repositoryId, Integer languageId, Integer sortOrder, Database db) throws Exception
{
RepositoryLanguage repositoryLanguage = new RepositoryLanguageImpl();
repositoryLanguage.setIsPublished(new Boolean(false));
repositoryLanguage.setLanguage(LanguageController.getController().getLanguageWithId(languageId, db));
repositoryLanguage.setRepository(RepositoryController.getController().getRepositoryWithId(repositoryId, db));
repositoryLanguage.setSortOrder(sortOrder);
db.create(repositoryLanguage);
return repositoryLanguage;
}