throw new SchemaVersionMergeException(String.format("Can't determine a unique schema branch for schema version id : '%s'", schemaVersionId)); } else if (schemaBranches.size() == 0) { throw new SchemaVersionMergeException(String.format("Schema version id : '%s' is not associated with any branch", schemaVersionId)); SchemaVersionInfo rootSchemaVersion = getRootVersion(schemaBranch); if (!latestSchemaVersion.getId().equals(rootSchemaVersion.getId())) { throw new SchemaVersionMergeException(String.format("The latest version of '%s' is different from the root version of the branch : '%s'", SchemaBranch.MASTER_BRANCH, schemaMetadataInfo.getSchemaMetadata() .getName())); initializedStateDetails)); } catch (InvalidSchemaException e) { throw new SchemaVersionMergeException(String.format("Failed to merge schema version : '%s'", schemaVersionId .toString()), e); mergeMessage); } catch (SchemaBranchNotFoundException e) { throw new SchemaVersionMergeException(String.format("Failed to merge schema version : '%s'", schemaVersionId .toString()), e);