public void removeSFSEntryForReplicaReplicationGroup(StorageSystem system,CIMObjectPath replicationSvc,String sourceReplicationGroupName){
  List<String> sfsEntries=getEMCSFSEntries(system,replicationSvc);
  String groupSynchronizedAspectLabel=formatSessionLabelForFabrication(system.getSerialNumber(),sourceReplicationGroupName);
  List<String> removeEntryList=new ArrayList<String>();
  if (sfsEntries != null && !sfsEntries.isEmpty()) {
    for (    String entry : sfsEntries) {
      if (entry.contains(groupSynchronizedAspectLabel)) {
        removeEntryList.add(entry);
      }
    }
  }
  if (removeEntryList.isEmpty()) {
    _log.info(String.format("The expected SFS entry %s is not found for the source group %s",groupSynchronizedAspectLabel,sourceReplicationGroupName));
    return;
  }
  try {
    String[] removeEntries=new String[removeEntryList.size()];
    removeEntries=removeEntryList.toArray(removeEntries);
    CIMArgument[] inArgs=new CIMArgument[]{_cimArgument.stringArray("SFSEntries",removeEntries)};
    CIMArgument[] outArgs=new CIMArgument[5];
    invokeMethod(system,replicationSvc,SmisConstants.EMC_REMOVE_SFSENTRIES,inArgs,outArgs);
  }
 catch (  WBEMException e) {
    _log.error("EMCRemoveSFSEntries -- WBEMException: ",e);
  }
}

public void removeSFSEntryForReplicaReplicationGroup ( StorageSystem system , CIMObjectPath replicationSvc , String sourceReplicationGroupName ) { List < String > sfsEntries = getEMCSFSEntries ( system , replicationSvc ) ; String groupSynchronizedAspectLabel = formatSessionLabelForFabrication ( system . getSerialNumber ( ) , sourceReplicationGroupName ) ; List < String > removeEntryList = new ArrayList < String > ( ) ; if ( sfsEntries != null && ! sfsEntries . isEmpty ( ) ) { for ( String entry : sfsEntries ) { if ( entry . contains ( groupSynchronizedAspectLabel ) ) { removeEntryList . add ( entry ) ; } } } if ( removeEntryList . isEmpty ( ) ) { _log . info ( String . format ( "The expected SFS entry %s is not found for the source group %s" , groupSynchronizedAspectLabel , sourceReplicationGroupName ) ) ; return ; } try { String [ ] removeEntries = new String [ removeEntryList . size ( ) ] ; removeEntries = removeEntryList . toArray ( removeEntries ) ; CIMArgument [ ] inArgs = new CIMArgument [ ] { _cimArgument . stringArray ( "SFSEntries" , removeEntries ) } ; CIMArgument [ ] outArgs = new CIMArgument [ 5 ] ; invokeMethod ( system , replicationSvc , SmisConstants . EMC_REMOVE_SFSENTRIES , inArgs , outArgs ) ; } catch ( WBEMException e ) { _log . error ( "EMCRemoveSFSEntries -- WBEMException: " , e ) ; } }
remove emcsfsentry containing the groupsynchronizedaspect information . it would find the entry using the snap session source replication group name , then remove it . this operation is necessary before deleting an attached snaphost session replication group .
