code: public static PromotionDetails createPromotionDetails(final Boolean canBePromoted, final Boolean isSnapshot, final List<String> unPromotedDependencies, final List<Artifact> doNotUseArtifacts) throws IOException{
  		try{
  			final PromotionDetails promotionDetails = new PromotionDetails();
  
  			promotionDetails.setPromotable(canBePromoted);
  			promotionDetails.setSnapshot(isSnapshot);
  			promotionDetails.setUnPromotedDependencies(unPromotedDependencies);
  			promotionDetails.setDoNotUseArtifacts(doNotUseArtifacts);
  
  			return promotionDetails;
  		}
  		catch(Exception e){
  			throw new IOException(e);
  		}
  	}
docs: Generates a PromotionDetails regarding the parameters.
  
  @param canBePromoted Boolean
  @param isSnapshot Boolean
  @param unPromotedDependencies List<String>
  @param doNotUseArtifacts List<Artifact>
  @return PromotionDetails
  @throws IOException