protected String getUniqueTargetNamespace ( String targetNamespacePrefix , final String baseName ) throws IOException { if ( targetNamespacePrefix == null || targetNamespacePrefix . length ( ) == 0 ) { return null ; } if ( baseName == null || baseName . length ( ) == 0 ) { throw new IOException ( "No target basename was provided" ) ; } if ( targetNamespacePrefix . charAt ( targetNamespacePrefix . length ( ) - 1 ) == ' ' ) { return targetNamespacePrefix + baseName ; } else { return targetNamespacePrefix + ' ' + baseName ; } }
TargetNamespace if it is not null is completed with the baseName .