ContentVersionVO contentVersionVO = cdc.getContentVersionVO(getDatabase(), this.siteNodeId, contentId,this.languageId, USE_LANGUAGE_FALLBACK, this.deliveryContext, this.infoGluePrincipal );
Integer contentTypeDefinitionId = cdc.getContentVO(getDatabase(), contentId, deliveryContext ).getContentTypeDefinitionId();
ContentTypeDefinitionVO contentTypeDefinitionVO = ctdc.getContentTypeDefinitionVOWithId( contentTypeDefinitionId, getDatabase());
Iterator attrIterator = ctdc.getContentTypeAttributes(contentTypeDefinitionVO, true).iterator();
String aText = text.replaceAll( "[^\\w]", "" );
aText = aText.substring( 0, ( aText.length() < 8 ? aText.length() : 8 ) ).toLowerCase();
StringBuffer uniqueId = new StringBuffer( aText );
uniqueId.append( "_" + contentVersionVO.getId() );
uniqueId.append( "_" + Math.abs( text.hashCode() ));
uniqueId.append( "_" + Math.abs(contentVersionVO.getVersionValue().hashCode() ) );
uniqueId.append( "_" + Math.abs(contentTypeDefinitionVO.getSchemaValue().hashCode() ) );
uniqueId.append( "_" + ( renderAttributes != null ? Math.abs( renderAttributes.hashCode() ) : 4711 ) );
AdvancedImageRenderer imageRenderer = new AdvancedImageRenderer();
// set up the renderer
while ( attrIterator.hasNext() )