Object instance = null;
try {
instance = Class.forName(serviceClass).newInstance();
} catch (InstantiationException e) {
e.printStackTrace();
throw new ServiceCreationFailException(e);
} catch (IllegalAccessException e) {
e.printStackTrace();
throw new ServiceCreationFailException(e);
} catch (ClassNotFoundException e) {
e.printStackTrace();
throw new NoSuchServiceException(e);
}