// Converting to SingularAttributeImpl is bad, but this resolver is TEMPORARY!
AbstractAttributeContainer.SingularAttributeImpl singularAttribute =
( AbstractAttributeContainer.SingularAttributeImpl ) attribute;
if ( ! singularAttribute.isTypeResolved() ) {
singularAttribute.resolveType(
new BasicType(
new JavaType( ( ( AbstractStandardBasicType) type ).getJavaTypeDescriptor().getJavaTypeClass() )
)
);
}
}