// Set the ID of the company to get.
Long companyId = Long.parseLong("INSERT_COMPANY_ID_HERE");
// Get the company.
Company company = companyService.getCompany(companyId);
if (company != null) {
System.out.println("Company with ID \"" + company.getId()
+ "\", name \"" + company.getName()
+ "\", and type \"" + company.getType() + "\" was found.");
} else {
System.out.println("No company found for this ID.");
}
} catch (Exception e) {
e.printStackTrace();