public static void main(String[] args) throws Exception {
CompositeContext moduleContext = CurrentCompositeContext.getContext();
LoginService loginService = moduleContext.locateService(LoginService.class, "LoginServiceComponent");
if (loginService.login("test", "password") == LoginService.SUCCESS) {
System.out.println("Success");
} else {
System.out.println("Failure");
}
}