@Nullable public CodenvyLicense load() throws LicenseException {
  String licenseText;
  try {
    licenseText=new String(Files.readAllBytes(licenseFile),UTF_8);
  }
 catch (  NoSuchFileException e) {
    throw new LicenseNotFoundException("Codenvy license not found");
  }
catch (  IOException e) {
    throw new LicenseException(e.getMessage(),e);
  }
  if (isNullOrEmpty(licenseText)) {
    throw new LicenseNotFoundException("Codenvy license not found");
  }
  return licenseFactory.create(licenseText);
}

@ Nullable public CodenvyLicense load ( ) throws LicenseException { String licenseText ; try { licenseText = new String ( Files . readAllBytes ( licenseFile ) , UTF_8 ) ; } catch ( NoSuchFileException e ) { throw new LicenseNotFoundException ( "Codenvy license not found" ) ; } catch ( IOException e ) { throw new LicenseException ( e . getMessage ( ) , e ) ; } if ( isNullOrEmpty ( licenseText ) ) { throw new LicenseNotFoundException ( "Codenvy license not found" ) ; } return licenseFactory . create ( licenseText ) ; }
loads codenvy license out of underlying storage .
