p("public " + RESOURCE_CLASS + " getResource() {").i(1);
{
p("if (this.resource == null) {").i(1);
if (options != null && options.serviceRootKey() != null && !options.serviceRootKey().isEmpty()) {
p("String serviceRoot = " + SERVICE_ROOTS_CLASS + ".get(\"" + options.serviceRootKey() + "\");");
} else {
p("String serviceRoot = " + DEFAULTS_CLASS + ".getServiceRoot();");
}