Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Not sure if you got this resolved but the code i sent you before after i read your post doesnt fit what you need.
Now you may have time to find a faster simplier solution but this is quick and works but may not be for you. Just an idea.
It should return every team template in your system and then you can do an if statment off the string to get what your looking for.
publicc static void teamTemp(){
wt.team.TeamTemplate temp = null;
try{
QuerySpec qs = new QuerySpec (wt.team.TeamTemplate.class);
qs.appendWhere (new SearchCondition (wt.team.TeamTemplate.class, wt.team.TeamTemplate.NAME,SearchCondition.NOT_LIKE, " "), 0);
StatementSpec spec = (StatementSpec)qs;
QueryResult qr = PersistenceHelper.manager.find(spec);
while(qr.hasMoreElements()){
temp = (wt.team.TeamTemplate)qr.nextElement();
String name = temp.getContainerName();
}
}catch(WTException e){e.printStackTrace();}
}