Change setBeanName to accept a String instead of a char *