public void installAemPackage(String packageName) throws IOException {
  String packagePath=String.format("/etc/packages/%s.zip",packageName);
  HttpPost request=builder.createInstallRequest(packagePath);
  sender.sendCrxRequest(request);
}

public void installAemPackage ( String packageName ) throws IOException { String packagePath = String . format ( "/etc/packages/%s.zip" , packageName ) ; HttpPost request = builder . createInstallRequest ( packagePath ) ; sender . sendCrxRequest ( request ) ; }
this method requests aem to install a package . package is identified by the package ' s name , provided as the method ' s parameter . installaempackage sends the request as a post request and checks the response . if the response is nok , then installaempackage throws an ioexception . < br > the package is installed in the aem instance indicated by the author . ip property .
