Loading a document specification through the Java API

Before loading a document specification, perform a IBM Engineering Lifecycle Optimization - Publishing API initialization. For more information, see Initializing and preparing the Java API.
DocumentSpecificationBuilder builder = new DocumentSpecificationBuilder();
URI configURI = new File( AppUtils.getConfigFilePath()).toURI();
RPEDocumentSpecification docSpec = builder.load(configURI.toString(), URIUtils.encodeURI(docSpecURL));