// Check for JMSPasswordCredential annotation
if (injectionPoint.getAnnotated().isAnnotationPresent(JMSPasswordCredential.class)) {
JMSPasswordCredential credential = injectionPoint.getAnnotated().getAnnotation(JMSPasswordCredential.class);
userName = propertyReplacer.replaceProperties(credential.userName());
password = propertyReplacer.replaceProperties(credential.password());
}
// Check for JMSSessionMode annotation
if (injectionPoint.getAnnotated().isAnnotationPresent(JMSSessionMode.class)) {
JMSSessionMode sessionMode = injectionPoint.getAnnotated().getAnnotation(JMSSessionMode.class);