* @param position
* @return
*/
@Transient
protected CmsContentElement getLangContentElement(JbsLanguage language, int position) {
CmsContentElement result = null;
Set<CmsContentElement> elements = this.getContentElements();
Iterator<CmsContentElement> it = elements.iterator();
while ((it.hasNext()) && (result==null)) {
CmsContentElement element = it.next();
if ((element.getPosition()==position) && (element.getLanguage()==language))
result = element;
else if (element.getPosition()>position)
return null;
}
return result;
}