added ProcessResource method
.