refactoring JMCloudcomputeMain class