public static void replaceWithPOJoinPackage(PhysicalPlan plan, MapReduceOper mr,
POPackage pack, POForEach forEach, String chunkSize) throws VisitorException {
String scope = pack.getOperatorKey().scope;
NodeIdGenerator nig = NodeIdGenerator.getGenerator();
POJoinPackage joinPackage;
joinPackage = new POJoinPackage(
new OperatorKey(scope, nig.getNextNodeId(scope)),
-1, pack, forEach);
joinPackage.setChunkSize(Long.parseLong(chunkSize));
List<PhysicalOperator> succs = plan.getSuccessors(forEach);
if (succs!=null)
{
if (succs.size()!=1)
{