private void writeSourceSinkSpec(SourceSinkSpec spec,Document document,Element parentElement){
  if (spec instanceof JavaParameterSpec)   writeJavaParameterSpec((JavaParameterSpec)spec,document,parentElement);
 else   if (spec instanceof JavaFieldSpec)   writeJavaFieldSpec((JavaFieldSpec)spec,document,parentElement);
 else   throw new RuntimeException("Unsupported source or sink specification type");
}

private void writeSourceSinkSpec ( SourceSinkSpec spec , Document document , Element parentElement ) { if ( spec instanceof JavaParameterSpec ) writeJavaParameterSpec ( ( JavaParameterSpec ) spec , document , parentElement ) ; else if ( spec instanceof JavaFieldSpec ) writeJavaFieldSpec ( ( JavaFieldSpec ) spec , document , parentElement ) ; else throw new RuntimeException ( "Unsupported source or sink specification type" ) ; }
writes out a source / sink specification object
