/** * Pre-create the PackagingInfo for this GridTalk. Require this when receive results from GmPrime. * * @param namePrefix Prefix for the Name of the PackagingInfo. * @param refId ReferenceID of the PackagingInfo. * @param props Properties for ConnectionSetup. * @return The created PackagingInfo */ private PackagingInfo preCreatePackagingInfo( String namePrefix, String refId, ConnectionSetupProperties props) throws Throwable { String name = namePrefix + props.getMasterChannelPkgName(); PackagingInfo _myPkgInfo = DelegateHelper.retrievePackagingInfo(refId, name); if (_myPkgInfo == null) { _myPkgInfo = DelegateHelper.createPackagingInfo( DelegateHelper.createPackagingInfo(refId, name, props.getMasterChannelPkgDesc())); } else { // update, make sure the info are correct DelegateHelper.updatePackagingInfo(_myPkgInfo, props.getMasterChannelPkgDesc()); DelegateHelper.updatePackagingInfo(_myPkgInfo); } return _myPkgInfo; }