From objects to services: toward a stepwise migration approach for Java applications