}
@Override
public <T> void visitClass(Class<T> clazz, JavaImplementation type) throws IntrospectionException {
ConversationAttributes conversation = clazz.getAnnotation(ConversationAttributes.class);
if (conversation == null) {
return;
}
Scope scope = clazz.getAnnotation(Scope.class);
if (scope == null) {
// implicitly assume conversation
type.setJavaScope(org.apache.tuscany.sca.implementation.java.JavaScopeImpl.CONVERSATION);
} else if (conversation != null) {
long maxAge;
long maxIdleTime;
String maxAgeVal = conversation.maxAge();
String maxIdleTimeVal = conversation.maxIdleTime();
try {
if (maxAgeVal.length() > 0) {
maxAge = convertTimeMillis(maxAgeVal);
type.setMaxAge(maxAge);
}