private boolean checkMirrorEnabled(){
  boolean isMirrorEnabled=false;
  if (_spaceURL != null) {
    isMirrorEnabled=Boolean.parseBoolean(_spaceURL.getProperty(SpaceURL.MIRROR,Mirror.MIRROR_SERVICE_ENABLED_DEFAULT));
  }
  Element mirrorService=getFirstMatchElement(m_rootDoc.getDocumentElement(),MIRROR_SERVICE_TAG);
  if (isMirrorEnabled && mirrorService == null) {
    throw new IllegalArgumentException(new ClusterConfigurationException("Mirror service is set in the Space URL, " + "but the cluster schema used does not support a mirror service."));
  }
  if (mirrorService != null) {
    isMirrorEnabled|=JSpaceUtilities.parseBooleanTag(ENABLED_TAG,getNodeValueIfExists(mirrorService,ENABLED_TAG));
  }
  return isMirrorEnabled;
}

private boolean checkMirrorEnabled ( ) { boolean isMirrorEnabled = false ; if ( _spaceURL != null ) { isMirrorEnabled = Boolean . parseBoolean ( _spaceURL . getProperty ( SpaceURL . MIRROR , Mirror . MIRROR_SERVICE_ENABLED_DEFAULT ) ) ; } Element mirrorService = getFirstMatchElement ( m_rootDoc . getDocumentElement ( ) , MIRROR_SERVICE_TAG ) ; if ( isMirrorEnabled && mirrorService == null ) { throw new IllegalArgumentException ( new ClusterConfigurationException ( "Mirror service is set in the Space URL, " + "but the cluster schema used does not support a mirror service." ) ) ; } if ( mirrorService != null ) { isMirrorEnabled |= JSpaceUtilities . parseBooleanTag ( ENABLED_TAG , getNodeValueIfExists ( mirrorService , ENABLED_TAG ) ) ; } return isMirrorEnabled ; }
checks if mirror service is needed and cofigure correctly .
