code: @Override
  	public List<ScopDomain> filterByDomainName(String query) {
  
  		List<ScopDomain > domains = new ArrayList<ScopDomain>();
  		if (query.length() <5){
  			return domains;
  		}
  
  		String pdbId = query.substring(1,5);
  
  		List<ScopDomain> doms = getDomainsForPDB(pdbId);
  
  
  		if ( doms == null)
  			return domains;
  
  		query = query.toLowerCase();
  		for ( ScopDomain d: doms){
  			if ( d.getScopId().toLowerCase().contains(query)){
  				domains.add(d);
  			}
  		}
  
  		return domains;
  	}
docs: /* (non-Javadoc)
  @see org.biojava.nbio.structure.scop.ScopDatabase#filterByDomainName(java.lang.String)