}
if(publish && contentlet!=null){
ContentletAPI capi = APILocator.getContentletAPI();
capi.publish(contentlet, user, true);
capi.unlock(contentlet, user, true);
callbackData.put("contentletLocked", contentlet.isLocked());
}
if (contentlet!=null && contentlet.getStructure().getVelocityVarName().equalsIgnoreCase("host")) {
String copyOptionsStr = (String)contentletFormData.get("copyOptions");