1. An information processing apparatus comprising: a memory; and a processor coupled to the memory and configured to: permit a first computer program and a second computer program to access a resource when first identification information of the first computer program is identical to second identification information of the second computer program, the resource being information used upon executing the first computer program and the second computer program, receive an instruction to transfer the first computer program from a first execution environment for non-business purposes to a second execution environment for business purposes, the first computer program being configured to access the resource, detect, by checking the first identification information and the second identification information, the second computer program located in the first execution environment that is configured to access the resource, provide information for a user to determine whether to transfer the second computer program from the first execution environment to the second execution environment, transfer the first computer program to the second execution environment and prohibit the first computer program to access the resource by changing the first identification information to a third identification information different from the second identification information when receiving a first instruction not to transfer the second computer program to the second execution environment, and transfer the first computer program and the second computer program to the second execution environment when receiving a second instruction to transfer the second computer program to the second execution environment.