in src/main/java/org/apache/sling/maven/slingstart/ProjectHelper.java [100:117]
public static Model getRawModel(final MavenProject project)
throws MojoExecutionException {
Model result = (Model) project.getContextValue(RAW_MODEL_CACHE);
if ( result == null ) {
try {
final String text = (String)project.getContextValue(RAW_MODEL_TXT);
if ( text == null ) {
throw new MojoExecutionException("No provisioning model found in project.");
}
final StringReader r = new StringReader(text);
result = ModelReader.read(r, project.getId());
project.setContextValue(RAW_MODEL_CACHE, result);
} catch ( final IOException ioe) {
throw new MojoExecutionException(ioe.getMessage(), ioe);
}
}
return result;
}