* @throws InvalidNamespaceException if the namespace is invalid
* @throws VersionException the if the version does not fit the expected range
*/
public void verifyNamespace( @Nullable String namespace ) throws InvalidNamespaceException, VersionException {
if ( namespace == null || namespace.trim().length() == 0 ) {
throw new VersionException( "No version information available" );
}
String expectedBase = getNameSpaceBase();
if ( !namespace.startsWith( expectedBase ) ) {
throw new InvalidNamespaceException( namespace, expectedBase + "/$VERSION>" );
}