* @param namespace the namespace uri
* @throws com.cedarsoft.serialization.InvalidNamespaceException if the namespace is invalid
*/
public void verifyNamespace( @Nullable String namespace ) throws InvalidNamespaceException, VersionException {
if ( namespace == null || namespace.trim().isEmpty() ) {
throw new VersionException( "No version information available" );
}
String expectedBase = getNameSpaceBase();
if ( !namespace.startsWith( expectedBase ) ) {
throw new InvalidNamespaceException( namespace, expectedBase + "/" + getFormatVersion() );
}