try {
instanceId = instance.getInstanceId();
} catch (final Exception e) {
log.error("invalid instanceId", new Exception(factoryId));
instanceWrapper.dispose();
return null;
}
if (instanceId == null) {
log.error("instanceId == null", new Exception(factoryId));