private String getProducerId ( final ProceedingJoinPoint pjp , final String aPId , final boolean withMethod ) { if ( ! StringUtils . isEmpty ( aPId ) ) return aPId ; String res = pjp . getSignature ( ) . getDeclaringTypeName ( ) ; try { res = MoskitoUtils . producerName ( res ) ; } catch ( final RuntimeException e ) { if ( logger . isTraceEnabled ( ) ) logger . trace ( e . getMessage ( ) , e ) ; } if ( withMethod ) { res += DOT + getMethodStatName ( pjp . getSignature ( ) ) ; } return res ; }
Fetch producer id - for further usage .