Add getFromAvailableMethod in resourceFactory