The Java to Service Model transformation accepts Java file as a source and generates software services model.
Java-to-service-model transformation documentation