Modified "getClustersOfWorkfaces_zhen_new2" to a utility function. It
can be called directly or indirectly by other methods