*
* @return the context of configuration for current thread
* @throws NullPointerException when context is null
*/
static GrapheneConfiguration get() {
GrapheneConfiguration configuration = REFERENCE.get();
if (configuration == null) {
throw new NullPointerException("configuration is null - it needs to be setup before starting to use it");
}
return configuration;
}