Feature/use tenant name externally

javadoc missing for public method.