private TableDef createTableFor( SchemaCatalogManager catalogManager, Ref head, String identifier )
{
String stereotypeName = head.name;
SchemaCatalog schemaCatalog = catalogManager.getSchemaCatalog();
Stereotype stereotype = schemaCatalog.getStereoTypeFor( null, head.fields );
if( stereotype != null )
stereotypeName = stereotype.getName();
else
schemaCatalog.createStereotype( null, stereotypeName, head.fields );
Protocol protocol = schemaCatalog.getDefaultProtocol();
Format format = schemaCatalog.getDefaultFormat();