protected static final String ACTION = "replication.package.action";
protected static final String ORIGIN = "replication.package.origin";
public static ReplicationQueueItem getPackage(final Job job) {
ReplicationPackageInfo packageInfo = new SimpleReplicationPackageInfo();
packageInfo.setOrigin((String) job.getProperty(ORIGIN));
return new ReplicationQueueItem((String) job.getProperty(ID),
(String[]) job.getProperty(PATHS),
String.valueOf(job.getProperty(ACTION)),
String.valueOf(job.getProperty(TYPE)), packageInfo);