private void handleSingleWorkingFolder(final String localPath,final VersionControlClient client) throws CLCException, CannotFindWorkspaceException {
  Check.notNull(localPath,"localPath");
  final WorkspaceInfo w=findCachedWorkspaceForPath(localPath);
  if (w == null) {
    final String messageFormat=Messages.getString("CommandWorkFold.NoWorkspaceFoundContainingMappingFormat");
    final String message=MessageFormat.format(messageFormat,localPath);
    throw new CLCException(message);
  }
  Workspace[] ret=null;
  try {
    ret=client.queryWorkspaces(w.getName(),w.getOwnerName(),w.getComputer());
  }
 catch (  final Exception e) {
    final String messageFormat=Messages.getString("CommandWorkFold.ErrorRefreshingCachedWorkspaceFormat");
    final String message=MessageFormat.format(messageFormat,w.toString(),e.getLocalizedMessage());
    throw new CLCException(message);
  }
  Check.isTrue(ret != null && ret.length == 1 && ret[0] != null,"ret != null && ret.length == 1 && ret[0] != null");
  printWorkspace(ret[0]);
}

private void handleSingleWorkingFolder ( final String localPath , final VersionControlClient client ) throws CLCException , CannotFindWorkspaceException { Check . notNull ( localPath , "localPath" ) ; final WorkspaceInfo w = findCachedWorkspaceForPath ( localPath ) ; if ( w == null ) { final String messageFormat = Messages . getString ( "CommandWorkFold.NoWorkspaceFoundContainingMappingFormat" ) ; final String message = MessageFormat . format ( messageFormat , localPath ) ; throw new CLCException ( message ) ; } Workspace [ ] ret = null ; try { ret = client . queryWorkspaces ( w . getName ( ) , w . getOwnerName ( ) , w . getComputer ( ) ) ; } catch ( final Exception e ) { final String messageFormat = Messages . getString ( "CommandWorkFold.ErrorRefreshingCachedWorkspaceFormat" ) ; final String message = MessageFormat . format ( messageFormat , w . toString ( ) , e . getLocalizedMessage ( ) ) ; throw new CLCException ( message ) ; } Check . isTrue ( ret != null && ret . length == 1 && ret [ 0 ] != null , "ret != null && ret.length == 1 && ret[0] != null" ) ; printWorkspace ( ret [ 0 ] ) ; }
print information about the workspace that contains the given local path .
