ListenableFuture<ConfigResponse> result = inMemoryConfigurator.config();
//TODO: Check with Terence on how to handle this stuff.
ConfigResponse response = result.get(120, TimeUnit.SECONDS);
ApplicationSpecification specification = adapter.fromJson(response.get());
if (appId != null) {
specification = new ForwardingApplicationSpecification(specification) {
@Override
public String getName() {
return appId;
}
};